x86: add a new SMP bring up way for tboot case
authorWei, Gang <gang.wei@intel.com>
Wed, 11 Jan 2012 09:34:45 +0000 (10:34 +0100)
committerWei, Gang <gang.wei@intel.com>
Wed, 11 Jan 2012 09:34:45 +0000 (10:34 +0100)
commit8254d9de116ba2346f489a529208a531a461c723
tree1efe39dc30544451a479514690b1cb30ca094997
parente31a66a2b81d1a3d7db829b603865586d44d6216
x86: add a new SMP bring up way for tboot case

From: Wei, Gang <gang.wei@intel.com>

tboot may be trying to put APs waiting in MWAIT loops before launching
Xen. Xen could check the new flag field in v6 tboot shared page for the
hint. If TB_FLAG_AP_WAKE_SUPPORT bit in flag field is set, Xen BSP have
to write the monitored memory(g_tboot_shared->ap_wake_trigger) to bring
APs out of MWAIT loops. The sipi vector should be written in
g_tboot_shared->ap_wake_addr before waking up APs.

Signed-off-by: Joseph Cihula <joseph.cihula@intel.com>
Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Gang Wei <gang.wei@intel.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Committed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/smpboot.c
xen/arch/x86/tboot.c
xen/include/asm-x86/tboot.h